package com.feri.redromance01.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @autor wfl
 * @time 2022/8/30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Deparement {
    private Integer id;
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd") //返回
    @DateTimeFormat(pattern = "yyyy-MM-dd") //接收
    private Date time;
    private String logourl;
}
